import {Delivery, SearchVO} from "@/typings";
import requestWithToken from "@/utils/request";

export const saveDelivery = (data: Delivery) => {
    return requestWithToken("/delivery/save", "POST", data);
};
export const listDelivery = (searchVO: SearchVO) => {
    return requestWithToken("/delivery/list", "GET", searchVO);
};
export const deleteDelivery = (id: string) => {
    return requestWithToken("/delivery/delete", "GET", {id});
};
export const getDelivery = (id: string) => {
    return requestWithToken("/delivery/get", "GET", {id})
}
